const mongoose = require('mongoose');

let accountSchema = new mongoose.Schema({
    title: {
        type:String,
        required:true,
    },
    time: {
        type:Date,
    },
    type: {
        type:Number,
        default:-1,
    },
    money:{
        type:Number,
        required: true
    },
    notes:String
})

let accountModel = mongoose.model('accounts', accountSchema);


module.exports = {
    accountModel
}
